<include file="Public:header" />
<div class="span4">
	<table class="table table-striped">
		<tr>
			<td colspan="2">{$task.mall.name} {$task.floor.name} {$task.brand.name}</td>
		</tr>
		<tr>
			<th>{:L('_ID')}</th>
			<td>{$task.id}</td>
		</tr>
		<tr>
			<th>{:L('_TITLE')}</th>
			<td>{$task.title}</td>
		</tr>
		<tr>
			<th>{:L('_START_TIME')}</th>
			<td>{$task.start_time|date="Y-m-d",###}</td>
		</tr>
		<tr>
			<th>{:L('_END_TIME')}</th>
			<td>{$task.end_time|date="Y-m-d",###}</td>
		</tr>
		<tr>
			<th>{:L('_CREATE_TIME')}</th>
			<td>{$task.create_time|date="Y-m-d H:i",###}</td>
		</tr>
		<tr>
			<th>{:L('_CONTENT')}</th>
			<td>{$task.content}</td>
		</tr>
		<tr>
			<th>{:L('_REMARK')}</th>
			<td>{$task.remark}</td>
		</tr>
		<tr>
			<th>{:L('_SLIDER')}</th>
			<td>
				<if condition="$task['is_slide'] eq 1">YES</if>
				<if condition="$task['is_slide'] eq 0">NO</if>
			</td>
		</tr>
	</table>
	</div>
	<if condition="$queue.status eq 2">
	<div  class="span4">
		<table class="table table-striped">
			<tr>
				<td>如果需求没有问题，可以开始任务。
				<br/>
				<form action="" method="post">
					<input type="hidden" name="status" value="3" />
					<input type="submit" class="btn" value="{:L('_START')}" />
				</form>
				</td>
			</tr>
		</table>
		</div>
		<div class="span4">
		<form action="" method="post">
			<table class="table table-striped">
				<tr>
					<th>{:L('_REMARK')}</th>
					<td>
						<textarea rows="5" cols="30" name="remark"></textarea>
						<span class="must">*</span>
					</td>
				</tr>
				<tr>
					<td colspan="2">
						<input type="hidden" name="status" value="4" />
						<input type="submit" class="btn" value="{:L('_RETURN')}" />
					</td>
				</tr>
			</table>
		</form>
		</div>
	<elseif condition="$queue.status eq 3" />
	<div class="span4">
		<form action="" method="post" enctype="multipart/form-data">
			<table class="table table-striped">
				<tr>
					<th>{:L('_TASK_CREATE_TIME')}</th>
					<td>{$allot.create_time|date="Y-m-d H:i:s",###}</td>
				</tr>
				<tr>
					<th>{:L('_TASK_START_TIME')}</th>
					<td>{$allot.start_time|date="Y-m-d H:i:s",###}</td>
				</tr>
				<tr>
					<td>{:L('_IMAGE')}</td>
					<td>
						<input type="file" value="file" name="image">
						<span class="must">*</span>
					</td>
				</tr>
				<tr>
					<th>{:L('_REMARK')}</th>
					<td>
						<textarea rows="5" cols="30" name="remark"></textarea>
						<span class="must">*</span>
					</td>
				</tr>
				<tr>
					<td colspan="2">
						<input type="hidden" name="status" value="6"/>
						<input type="submit" class="btn" value="{:L('_STOP')}" />
					</td>
				</tr>
			</table>
		</form>
	</div>
	</if>
<notempty name="returns">
<div class="span4">
	{:L('_TASK_RETURN')}
	<table class="table table-striped">
		<tr>
			<td>{:L('_LAUNCH_PERSON')}</td>
			<td>{:L('_REMARK')}</td>
			<td>{:L('_CREATE_TIME')}</td>
			<td>{:L('_REPLY')}</td>
			<td>{:L('_REPLY_TIME')}</td>
		</tr>
		<foreach name="returns" item="return">
		<tr>
			<td>{$return.num}</td>
			<td>{$return.remark}</td>
			<td>{$return.create_time|date="Y-m-d h:i",###}</td>
			<td>{$return.reply}</td>
			<td><notempty name="return.reply_time">{$return.reply_time|date="Y-m-d h:i",###}</notempty></td>
		</tr>
		</foreach>
	</table>
</div>
</notempty>
<notempty name="auditReturn">
<div class="span4">
	{:L('_TASK_RETURN')}
	<table class="table table-striped">
		<tr>
			<td>{:L('_USER_NUM')}</td>
			<td>{:L('_REMARK')}</td>
			<td>{:L('_CREATE_TIME')}</td>
		</tr>
		<tr>
			<td>{$auditReturn.num}</td>
			<td>{$auditReturn.remark}</td>
			<td>{$auditReturn.create_time|date="Y-m-d h:i",###}</td>
		</tr>
	</table>
</div>
</notempty>
<include file="Public:footer" />